<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>用户注册</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script language="javascript"> 
function checkRegister()
{
   if ((register.uname.value!="") && (register.upwd.value!="")&& (register.upwdagin.value!=""))      
	{
		  // 如果用户名和密码均不为空,则返回true  
		if(register.upwd.value!=register.upwdagin.value)
	    {
		    alert("二次密码输入不一致!");
		    return false;
	    }else{
			
			return true;
		}
		
	}        
    else {
        // 如果用户名或密码为空,则显示警告信息
         alert("用户名或密码不能为空!");
         return false;
    }
}
</script>

 
	
</head>
<body>
 <form  action="__URL__/doregister" method="post" name="register" onsubmit="return checkRegister()">
 <div style=" margin-top:200px;margin-left:400px;">
 <table border="0" cellspacing="1" style="background-color:#a0c6af">
<tr>
<td>
用户注册
</td>

<td>
</td>
</tr>

<tr>
<td>用户名：
</td>

<td>
<input type="text" name="uname" />
</td>
</tr>

<tr>
<td>密码：
</td>
<td>
<input   type="password" name="upwd" />
</td>
</tr>

<tr>
<td>确认密码：
</td>
<td>
<input  type="password" name="upwdagin" />
</td>
</tr>

<tr>
<td>
</td>
<td>
<input type="submit" value="注册" /> &nbsp;&nbsp;&nbsp;<a href="__APP__/Index/index.html"> 返回主页</a>
</td>
</tr>
</table>
 </div>
</form>
 

</body>
</html>


